<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    
    <link rel="stylesheet" href="__PUBLIC__/style/cssn/admin.css">
    <link rel="stylesheet" href="__PUBLIC__/style/cssn/pintuer.css">
    <link rel="stylesheet" href="__PUBLIC__/style/cssn/self.css">
    <script src="__PUBLIC__/style/jsn/jquery.js"></script>
    <script src="__PUBLIC__/style/jsn/pintuer.js"></script>

</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 轮播信息</strong></div>
    <div class="body-content">
    <form method="post" name="form11" class="form-x" action="{:U('Admin/Carousel/update')}" enctype="multipart/form-data">
        <input type="hidden" value="{$data['id']}" name="id">
        <div class="big_div">
            <label class="dates">轮播图：</label>
            <img src="__PUBLIC__{$data['pic']}" width="200">
        </div>
        <div class="big_div" style="margin:0 0 0 150px">
            <input type="file" name="pic" id="exampleInputFile">
            <p class="help-block">请选择一张漂亮的logo</p>
        </div>
        
        <div class="big_div">
            <label class="dates">排序：</label>
            <div class="big_input">
                <input type="text" name="sort" class="input" style="width:200px" value="{$data['sort']}" id="" placeholder="请输入序号">
            </div>
            <div class="big_center"></div>
        </div>
        
        <div class="form-group">
            <div class="label">
              <label></label>
            </div>
            <div class="field">
              <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
            </div>
        </div>

    </form>
  </div>
</div>
</body>

</html>

<script type="text/javascript" src="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/jquery.validate.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/messages_zh.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/validation.css">
<script type="text/javascript">
$("form[name=form11]").validate({
    rules:{
        sort:{
            required:true,
        }
       
    },
    messages:{
        sort:{
            required:"序号不能为空",
        }
        
    }
});
</script>